package com.caac.core.util;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright Intolong 2004</p>
 * <p>Company: Intolong</p>
 * @author <a href="mailto:intolong@163.com">Intolong</a>
 * @version 1.0
 */

public class ListMapClass implements Serializable {
    private Map map = new HashMap();
    private List list = new ArrayList();

    public void addChild(String key, Object bean) {
        map.put(key.trim(), bean);
        list.add(bean);
    }

    public List getChildren() {
        return list;
    }

    public Object getChild(String key) {
        return map.get(key);
    }
}
